package com.crcchem.practice.demos.web.service.Impl;

import com.crcchem.practice.demos.web.entity.User;
import com.crcchem.practice.demos.web.mapper.UserMapper;
import com.crcchem.practice.demos.web.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @projectName: practice
 * @package: com.crcchem.practice.demos.web.service.Impl
 * @className: UserServiceImpl
 * @author: 李富强
 * @description: TODO
 * @date: 2025/5/15 15:12
 * @version: 1.0
 */
@Service
@Slf4j
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> queryUserList(String name,Integer pageNumber,Integer pageSize) {
        return userMapper.queryUserList(name,pageNumber,pageSize);
    }

    @Override
    public List<User> queryUserListAll() {
        return userMapper.queryUserListAll();
    }
}
